﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;


namespace OnlineMovieTicket.Model
{
    [MetadataType(typeof(MovieTimeTableMetadata))]
    [Serializable]
    public partial class MovieTimeTable
    {
        
        public int MovieAssignmentID { get; set; }

        public int MovieCode { get; set; }

        public int ScheduleID  {get;set;}

        public DateTime AssignDate{get;set;}

        public DateTime ShowingDate { get; set; }
                
        public DateTime StartTime { get; set; }
    }

    public class MovieTimeTableMetadata
    {
        [Required(ErrorMessage = "Movie Assignment ID is required")]
        public object MovieAssignmentID;

        [Required(ErrorMessage = "Movie Code is required")]
        public object MovieCode;

        [Required(ErrorMessage = "Show Time is required")]        
        public object ScheduleID;

        [Required(ErrorMessage = "Assigned Date is required")]
        public object AssignDate;

        [Required(ErrorMessage = "Showing Date is required")]        
        public object ShowingDate;
        
    }
  
}
